<?php

class Trip{
    private $tripId;
    private $userid;
    private $fromcityid;
    private $tocityid;
    private $fromdate;
    private $todate;
    private $transport;
    private $description;



    function  __construct($tripId='', $userid='', $fromcityid='', $tocityid='', $fromdate='', $todate='', $transport='', $description='') {
        $this->tripId = $tripId;
        $this->userid = $userid;
        $this->fromcityid = $fromcityid;
        $this->tocityid = $tocityid;
        $this->fromdate = $fromdate;
        $this->todate = $todate;
        $this->transport = $transport;
        $this->description = $description;
    }

    function __get($name)
    {
        return $this->$name;
    }

    function __set($name,$value)
    {
        $this->$name = $value;
    }
}
?>
